<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
	<head>
		<title><?php echo ($system_name); ?></title>
		<meta charset="UTF-8">
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<!-- intoHead  -->
		<link rel="stylesheet" type="text/css" href="<?php echo C('BOOTSTRAP');?>css/bootstrap.min.css?v=<?php echo C('VERSION');?>" />
		<link rel="stylesheet" type="text/css" href="<?php echo C('HOME_CSS');?>console.css?v=<?php echo C('VERSION');?>" />
		<script type="text/javascript" src="<?php echo C('HOME_JS');?>jquery-2.0.3.min.js?v=<?php echo C('VERSION');?>"></script>
		<script type="text/javascript" src="<?php echo C('HOME_JS');?>index.js?v=<?php echo C('VERSION');?>"></script>
		<script language="JavaScript" src="<?php echo C('LAYERUI');?>layui.js?v=<?php echo C('VERSION');?>"></script>
		<script language="JavaScript" src="<?php echo C('HOME_JS');?>function.js?v=<?php echo C('VERSION');?>"></script>
		<script>
		layui.use(['layer','form'], function(){
			var layer=layui.layer;
			var form =layui.form();
		});
		</script>
		<link rel="stylesheet" type="text/css" href="<?php echo C('HOME_CSS');?>iframe.css?v=<?php echo C('VERSION');?>" />
		<script>
			var city_url = "<?php echo C('HOME_JS');?>city.min.js";
		</script>
		<script type="text/javascript" src="<?php echo C('HOME_JS');?>jquery.cityselect.js"></script>
		<script type="text/javascript" src="<?php echo C('UPLOAD');?>jquery.form.js"></script>

	</head>
<style type="text/css">
	table{width:100%;}
	table td,table th{padding:6px 0px 6px 6px;background:#FFFFFF;}
	table th{text-align:center;line-height:30px;margin:5px;border-bottom:10px solid #f5f5f5;border-right:1px solid #DEDEDE;color:#3e3e3e;}
	table td{text-align:center;border-bottom:2px solid #DEDEDE;line-height:25px;}
	.spacess{color:#ccc;float:right;border-right:1px solid #DEDEDE;height:35px;}
	.opration{text-align: left !important;padding-left:30px;border-right:1px solid #DEDEDE;}
</style>
<body class="iframe-body">


 <div style="text-indent:10px;background:#EAEDF1;width:100%;position:fixed;top:0px;height:35px;line-height:35px;">
    <a href="<?php echo U('Index/home');?>" target="right-page" style="color:#5c5c5c;text-decoration:none;">
	    <img style="position:relative;top:-2px;" src="<?php echo C('HOME_IMAGE');?>icon/sy_icon.png" width="15px;">
	    <?php echo (L("_HOME_PAGE")); ?>
    </a>
    &gt;
    <a href="<?php echo U($nav_one['action'],array('nav_id'=>$nav_one['id']));?>" target="right-page" style="color:#5c5c5c;text-decoration:none;">
    	<?php echo ($nav1); ?>
    </a>
    &gt;
    <a href="<?php echo U($nav_two['action'],array('nav_id'=>$nav_two['id']));?>" target="right-page" style="text-decoration:none;">
    	<span style="color:#15b6be;"><?php echo ($nav2); ?></span>
    </a>
    <span style="float:right;margin-right:10px;cursor:pointer;" onclick="location.reload()"><?php if((LANG_SET) == "zh-cn"): ?>刷新<?php else: ?>refresh<?php endif; ?></span>
</div>
<div class="body" style="background:#f5f5f5;padding-top: 45px;">
<button type="button" style="margin:0px;" class="btn btn-info" id="add_qrcode"><?php echo (L("_ADD")); echo (L("EQUIP_INFO")); ?></button>
<table style="margin-top:5px;">
	<tr>
		<th><?php echo (L("USER_NUM")); ?></th>
		<th><?php echo (L("EQUIP_OUT_TIME")); ?></th>
		<th><?php echo (L("EQUIP_TYPE")); ?></th>
		<th><?php echo (L("EQUIP_SOFT_VERSION")); ?></th>
		<th><?php echo (L("EQUIP_HARD_VERSION")); ?></th>
		<th><?php echo (L("EQUIP_LSH")); ?></th>
		<th><?php echo (L("EQUIP_ADD_TIME")); ?></th>
		
		<th><?php echo (L("_QRCODE")); ?></th>
		
		<th><?php echo (L("EQUIP_STATUE")); ?></th>
		<th>其他状态</th>
		<th><?php echo (L("USER_ACTION")); ?></th>
	</tr>
	<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
		<td><?php echo ($vo["id"]); ?><span class="spacess"></span></td>
		<td><?php echo (date('Y-m-d',$vo["date_of_production"])); ?><span class="spacess"></span></td>
		<td><?php echo ($vo["equipment_model"]); ?><span class="spacess"></span></td>
		<td><?php echo ($vo["soft_version"]); ?><span class="spacess"></span></td>
		<td><?php echo ($vo["hard_version"]); ?><span class="spacess"></span></td>
		<td><?php echo ($vo["serial_number"]); ?><span class="spacess"></span></td>
		<td><?php echo (date('Y-m-d H:i:s',$vo["create_time"])); ?><span class="spacess"></span></td>
		<td><a href="<?php echo ($vo["qrcode_url"]); ?>" target="_blank"><img class="head_pic" src="<?php echo ($vo["qrcode_url"]); ?>" width="50px"></a><span class="spacess"></span></td>
		
		<td><span class="spacess"></span>
			<?php if(($vo["equipment_statue"]) == "1"): ?><font color="green"><font color="green" size="4">●</font> <?php echo (L("EQUIP_STATUE1")); ?></font><?php endif; ?>
			<?php if(($vo["equipment_statue"]) == "2"): ?><font color="#FFD700"><font color="#FFD700" size="4">●</font> <?php echo (L("EQUIP_STATUE2")); ?></font><?php endif; ?>
			<span class="spacess"></span>
		</td>
		<td class="view_">查看</td>
		<td>
		<a href="<?php echo U('Demo/Index/qrcode',array('equipment_id'=>$vo['id']));?>" target="_blank">模拟舱门二维码页面</a><br>
		<a href="<?php echo U('Demo/Index/login',array('equipment_id'=>$vo['id']));?>" target="_blank">模拟舱内登录页面</a><br>
		<a href="javascript:;" data_id="<?php echo ($vo["id"]); ?>" class="del"><?php echo (L("_DELETE")); ?></a></td>
	</tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
<div class="page"><?php echo ($page); ?></div>
</div>
<script>
$('table').on('mouseover','.view_',function(){
	var html='';
	html += '<div>紧急开关：正常</div>';
	html += '<div>指示灯：机器待机</div>';
	html += '<div>舱门状态：关闭</div>';
	html += '<div>特斯拉线圈状态：关闭</div>';
	html += '<div>脚台状态：关闭</div>';
	html += '<div>体重检测状态：关闭</div>';
	html += '<div>按摩椅脚台状态：放下</div>';
	var index=layer.tips(html, $(this),{time:0,tips: [4, '#78BA32']})
})
$('table').on('mouseout','.view_',function(){
	layer.closeAll();
})
	$('table').on('click','.del',function(){
		var id = $(this).attr('data_id');
		var url ="<?php echo U('Sbgl/del_sb_qrcode');?>";
		var data={id:id};
		  parent.layer.confirm('<?php echo (L("EQUIP_DELETE")); ?>',function(){
			  $.get(url,data,function(res){
				  parent.layer.msg(res.msg,{time:2000},function(){
					  location.reload();
				  })
			  })
		  })
	})
	$('#add_qrcode').click(function(){
		var url = "<?php echo U('Sbgl/add_sb_qrcode');?>"
		parent.layer.open({
			title:'<?php echo (L("_ADD")); echo (L("EQUIP_INFO")); ?>',
			type: 2,
		    area: ['450px', '370px'],
		    fixed: false, //不固定
		    maxmin: true,
		    shadeClose: true,
		    content: url,
		    end:function(){
		    	location.reload();
		    }
		})
	})
//鼠标放上图片变大
big_img1();
</script>
		<!-- <div class="aliyun-console-sidebar-tooltip right fade in" title="" content="云服务器ECS&nbsp;" style="top: 120px; left: 50px; display: block;">
			<div class="tooltip-arrow"></div>
			<div class="tooltip-inner ng-binding">云服务器ECS&nbsp;</div>
		</div> -->
	</body>
</html>